import request from '@/utils/request'

// 查询运动打卡记录列表
export function listExerciseLogs(query) {
  return request({
    url: '/fitsculpt/exercise/logs/list',
    method: 'get',
    params: query
  })
}

// 查询运动打卡记录详细
export function getExerciseLogs(logId) {
  return request({
    url: '/fitsculpt/exercise/logs/' + logId,
    method: 'get'
  })
}

// 新增运动打卡记录
export function addExerciseLogs(data) {
  return request({
    url: '/fitsculpt/exercise/logs',
    method: 'post',
    data: data
  })
}

// 修改运动打卡记录
export function updateExerciseLogs(data) {
  return request({
    url: '/fitsculpt/exercise/logs',
    method: 'put',
    data: data
  })
}

// 删除运动打卡记录
export function delExerciseLogs(logId) {
  return request({
    url: '/fitsculpt/exercise/logs/' + logId,
    method: 'delete'
  })
}